/**
 * @license
 * Cesium - https://github.com/CesiumGS/cesium
 * Version 1.99
 *
 * Copyright 2011-2022 Cesium Contributors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Columbus View (Pat. Pend.)
 *
 * Portions licensed separately.
 * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
 */
define(["./defined-841154bc","./Cartesian3-baad0d89","./defaultValue-96fcdfd6","./EllipsoidOutlineGeometry-927a162d","./Math-65e8389d","./Transforms-e197038a","./Ellipsoid-8c7a76bb","./GeographicProjection-55dca850","./Matrix3-d40b977d","./Matrix2-6acef2ae","./RuntimeError-5ad5d372","./Cartesian2-cf084b8e","./Resource-61034e3e","./combine-43f74aba","./defer-fe5560c8","./ComponentDatatype-30c22829","./WebGLConstants-fcb70ee3","./GeometryAttribute-5a1e1fea","./GeometryAttributes-b872d70e","./GeometryOffsetAttribute-d3a42805","./IndexDatatype-5150999f"],(function(e,i,t,n,r,a,o,s,d,c,l,u,f,p,m,y,G,b,k,P,E){"use strict";function O(e){const r=t.defaultValue(e.radius,1),a={radii:new i.Cartesian3(r,r,r),stackPartitions:e.stackPartitions,slicePartitions:e.slicePartitions,subdivisions:e.subdivisions};this._ellipsoidGeometry=new n.EllipsoidOutlineGeometry(a),this._workerName="createSphereOutlineGeometry"}O.packedLength=n.EllipsoidOutlineGeometry.packedLength,O.pack=function(e,i,t){return n.EllipsoidOutlineGeometry.pack(e._ellipsoidGeometry,i,t)};const _=new n.EllipsoidOutlineGeometry,v={radius:void 0,radii:new i.Cartesian3,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0};return O.unpack=function(t,r,a){const o=n.EllipsoidOutlineGeometry.unpack(t,r,_);return v.stackPartitions=o._stackPartitions,v.slicePartitions=o._slicePartitions,v.subdivisions=o._subdivisions,e.defined(a)?(i.Cartesian3.clone(o._radii,v.radii),a._ellipsoidGeometry=new n.EllipsoidOutlineGeometry(v),a):(v.radius=o._radii.x,new O(v))},O.createGeometry=function(e){return n.EllipsoidOutlineGeometry.createGeometry(e._ellipsoidGeometry)},function(i,t){return e.defined(t)&&(i=O.unpack(i,t)),O.createGeometry(i)}}));
